import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
import App from './index.vue'
import router from '@/router'


// 按需加载vant组件
import { Cell, CellGroup ,NavBar} from 'vant';
Vue.use(Cell).use(CellGroup).use(NavBar);


// 路由加载与配置
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const homeRouter = new VueRouter({
  routes: router.home,
  mode: 'history'
})

// 实例化
new Vue({
  router: homeRouter,
  render: h => h(App)
}).$mount('#app')
